package main

import (
	"bytes"
	"fmt"
)

func main() {
	buf := new(bytes.Buffer)
	buf.Reset()
	buf.WriteString("a")

	buf.WriteString("b")

	fmt.Println(buf.String())		// ab
	buf.Reset()
	buf.WriteString("c")

	buf.WriteString("d")
	buf.WriteString("e")

	fmt.Println(buf.String())	// cde
}

